package health_system.health_system.repository;

import health_system.health_system.entity.Friendship;
import health_system.health_system.entity.PrivacySettings;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface PrivacySettingsRepository extends JpaRepository<PrivacySettings, Long> {
    
    Optional<PrivacySettings> findByFriendship(Friendship friendship);
    
    Optional<PrivacySettings> findByFriendshipId(Long friendshipId);
} 